home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000027_news@newsmaster….columbia.edu _Mon May 4 11:51:09 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  2KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA05642
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 4 May 1998 11:51:08 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA17179
  7.     for kermit.misc@watsun; Mon, 4 May 1998 11:51:08 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.os.aos,comp.protocols.kermit.misc
  11. Subject: Re: parameter btw kermit and aos/vs
  12. Date: 4 May 1998 15:51:06 GMT
  13. Organization: Columbia University
  14. Lines: 33
  15. Distribution: inet
  16. Message-ID: <6iko5a$t1d$1@apakabar.cc.columbia.edu>
  17. References: <B173421696681120E@0.0.0.0>
  18. NNTP-Posting-Host: watsun.cc.columbia.edu
  19. Xref: news.columbia.edu comp.os.aos:1367 comp.protocols.kermit.misc:8678
  20.  
  21. In article <B173421696681120E@0.0.0.0>,
  22. Thierry Wautelet <wautelet@innet.be> wrote:
  23. : I would like to pass a value between an AOS/VS macro and
  24. : a Kermit script.
  25. I'll show you how to do it in UNIX and then maybe you or somebody else
  26. who knows more about AOS/VS than I do can explain how to do it there.
  27.  
  28. Suppose you have a UNIX shell script called "send" that is supposed to
  29. send a file with Kermit.  It might look like this:
  30.  
  31.   kermit -s $1
  32.  
  33. If you invoke it like this:
  34.  
  35.   send foo.bar
  36.  
  37. the UNIX shell substitutes "foo.bar" for the formal parameter "$1".
  38.  
  39. Now suppose suppose you have a Kermit script program stored in a file
  40. called "myscript.ksc", and it uses a variable \%f to represent a filename,
  41. and you want to run this script from the UNIX command line, passing the
  42. filename to the script.  You would do this with a shell script like this:
  43.  
  44.   kermit -C "define \%f $1, take myscript.ksc"
  45.  
  46. My guess at an AOS/VS translation of this would be:
  47.  
  48.   kermit -C "define \%%f %1%, take myscript.ksc"
  49.  
  50. (I assume the "%" in "\%f" would need to be quoted somehow...)
  51.  
  52. - Frank